home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9131 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  30 lines

  1. Newsgroups: comp.lang.c
  2. Path: news.sprintlink.net!news1!ts00-and-30
  3. From: dlmiller@iquest.net (Doug & Rose Miller)
  4. Subject: Re: Newbie question: byte order
  5. X-Nntp-Posting-Host: ts00-and-30.iquest.net
  6. Message-ID: <DnxGu6.4wp@iquest.net>
  7. Sender: news@iquest.net (News Admin)
  8. Organization: IQuest Network Services
  9. X-Newsreader: News Xpress Version 1.0 Beta #2.1
  10. References: <4hdhjl$m22@nnrp1.news.primenet.com>
  11. Date: Fri, 8 Mar 1996 02:38:18 GMT
  12.  
  13. dineh@primenet.com (Dineh Alliance) wrote:
  14. +I have found Turbo C++ a good package for developing data conversion routines,
  15. +but recently I encountered a data concept not covered in their online
  16. +documentation (or at least I can't find it):
  17. +
  18. +byte order (i.e. "bigendian" vs. "littleendian").
  19. +
  20. +What is it?  Are there any good books or Web/Gopher resources that discuss it?
  21. +
  22. +Thanks in advance for your help!
  23. +
  24. +Mark Cederholm
  25. Simply refers to the order in which the most and least significant bytes of a word are actually (physically)
  26. stored in memory.  For example, given an int with the value 0x1234, this is physically stored as
  27. 3412 on PC and VAX platforms (among others), and as 1234 on IBM mainframe and Tandem platforms
  28. (among others).  "Bigendian" (big end first) is the latter, and "littleendian" (little end first) is the former.
  29.  
  30.